

package arimaa;

public class Square {

    int x;
    int y;
    boolean isTrap = false;
    boolean selected;


    Piece currentPiece = null;
    public Square(){

    }
    public void setX(int newX){
        x = newX;
    }
    public void setY(int newY){
        y = newY;
    }
    public void setTrap(boolean isTrapped){
        isTrap = isTrapped;
    }
    public int getX(){
        return x;
    }
    public int getY(){
        return y;
    }
    public Piece getPiece(){
        return currentPiece;
    }
    public void setPiece(Piece newPiece){
        currentPiece = newPiece;
    }
    public boolean isTrapped(){
        return isTrap;
    }
     public boolean isSelected() {
        return selected;
    }

    public void setSelected(boolean selected) {
        this.selected = selected;
    }
}
